package de.dhbw.ka.tit09.picsim;

import java.util.EventObject;

import de.dhbw.ka.tit09.picsim.ui.model.SourceTextTableElement;

/**
 * Event class which describes an event which occurs if a line of code should be
 * revealed in the GUI.
 * 
 * @author Andreas Bender
 * 
 */
public class RevealEvent extends EventObject {
	private static final long serialVersionUID = 2870232631694623617L;

	private SourceTextTableElement element;

	/**
	 * Constructor.
	 * 
	 * @param source the object where the event occurred
	 * @param element the element which should be revealed
	 */
	public RevealEvent(Object source, SourceTextTableElement element) {
		super(source);
		this.element = element;
	}

	/**
	 * Returns the table element which should be revealed.
	 * 
	 * @return the table element
	 */
	public SourceTextTableElement getElement() {
		return element;
	}
}
